package com.zlll.winner.business.service.sysUser;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.sysUser.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author ricky
 * @since 2019-09-06
 */
public interface ISysRoleService extends IService<SysRole> {

    IPage<SysRole> findRolePage(SysRole role, Integer pageNo, Integer pageSize);

    void addMenuRole(SysRole role, List<Long> menus, Long userId, String name);

    void updateMenuRole(SysRole role, List<Long> menus, Long userId, String name);

    void deleteRole(Long id, Long userId, String name);

    List<SysRole> getAllList();
}
